exports.queryStringToObject = (queryString)=> {  
    const searchParams = new URLSearchParams(queryString.startsWith('?') ? queryString.slice(1) : queryString);  
    const result = {};  
    for (let [key, value] of searchParams.entries()) {  
        result[key] = value;  
    }  
    return result;  
}  